#ifndef __TAB_PAGE_H__
#define __TAB_PAGE_H__

#include "gofgame/common/ui/Container.h"
#include "gofgame/common/ui/LayoutData.h"
#include "gofgame/common/cxx_0x.h"
#include <string>
using namespace gofgame::common::ui;
using namespace std;

namespace gofgame {
	namespace common {
		namespace ui {
			class TabPage : public Container {
			public:
				TabPage();

				virtual void setLayoutData(LayoutData *layoutData) _override _final;
				virtual void setVisible(bool visible) _override _final;

				const char *getText() const;
				virtual void setText(const char *text);

				bool isSelected() const;
				virtual void select();

			protected:
				virtual void onValidateContainer(Container *container) _override;

			private:
				string text;
			};
		}
	}
}

#endif //__TAB_PAGE_H__
